<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[id]" value="{$row.id}">
    <div class="form-group">
        <label for="c-category_id" class="control-label col-xs-12 col-sm-2">{:__('设备分类')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-category_id" data-rule="required" min="0" data-source="device/category/index" class="form-control selectpage" name="row[category_id]" type="text" value="{$row.category_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-model" class="control-label col-xs-12 col-sm-2">{:__('设备型号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-model" data-rule="required" min="0" data-source="device/device_model/index" class="form-control selectpage" name="row[model_id]" type="text" value="{$row.model_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-identifier_code" class="control-label col-xs-12 col-sm-2">{:__('设备ID号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-identifier_code" data-rule="required" class="form-control" name="row[identifier_code]" type="text" value="{$row.identifier_code|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label for="c-device_sn" class="control-label col-xs-12 col-sm-2">{:__('设备sn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-device_sn" data-rule="required" class="form-control" name="row[device_sn]" type="text" value="{$row.device_sn|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label for="c-master_id" class="control-label col-xs-12 col-sm-2">{:__('设备主')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-master_id" data-rule="required" min="0" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[master_id]" type="text" value="{$row.master_id|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('设备名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" min="0" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-custom_name" class="control-label col-xs-12 col-sm-2">{:__('Custom_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-custom_name" min="0" class="form-control" name="row[custom_name]" type="text" value="{$row.custom_name|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label for="c-speed" class="control-label col-xs-12 col-sm-2">{:__('Speed')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-speed" data-rule="required" min="0" class="form-control" name="row[speed]" type="number" value="{$row.speed|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-hardness" class="control-label col-xs-12 col-sm-2">{:__('Hardness')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hardness" data-rule="required" min="0" class="form-control" name="row[hardness]" type="number" value="{$row.hardness|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-duration" class="control-label col-xs-12 col-sm-2">{:__('时长')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-duration" data-rule="required" min="0" class="form-control" name="row[duration]" type="number" value="{$row.duration|htmlentities}">
                <span class="input-group-addon">秒</span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-province_id" class="control-label col-xs-12 col-sm-2">{:__('省份')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-province_id" data-rule="required" min="0" data-source="area/index" class="form-control selectpage" name="row[province_id]" type="text" value="{$row.province_id|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
